package com.make.house.api.controller.reponse.upload;


import com.make.house.api.model.Bean;

/**
 * Created by yll on 2017/11/7.
 * 登录注册成功返回对象bean
 */
public class FileUploadResponseDataBean implements Bean {
    private String path;
    private long expire_at;
    private String policy;
    private String signature;

    public String getPath() {
        return path;
    }

    public void setPath(String path) {
        this.path = path;
    }

    public long getExpire_at() {
        return expire_at;
    }

    public void setExpire_at(long expire_at) {
        this.expire_at = expire_at;
    }

    public String getPolicy() {
        return policy;
    }

    public void setPolicy(String policy) {
        this.policy = policy;
    }

    public String getSignature() {
        return signature;
    }

    public void setSignature(String signature) {
        this.signature = signature;
    }


    public static Builder newBuilder() {
        return new Builder();
    }

    public static final class Builder {
        private FileUploadResponseDataBean instance;

        private Builder() {
            this.instance = new FileUploadResponseDataBean();
        }

        public Builder withPolicy(String policy) {
            this.instance.setPolicy(policy);
            return this;
        }
        public Builder withSignature(String signature) {
            this.instance.setSignature(signature);
            return this;
        }
        public Builder withPath(String path) {
            this.instance.setPath(path);
            return this;
        }
        public Builder withExpireAt(long expireAt) {
            this.instance.setExpire_at(expireAt);
            return this;
        }

        public FileUploadResponseDataBean build() {
            return this.instance;
        }
    }

}
